# tests/conftest.py
import sys
import os
import pytest
from pathlib import Path

# 添加项目根目录到Python路径
project_root = Path(__file__).parent.parent
sys.path.insert(0, str(project_root))

@pytest.fixture
def sample_vehicle_data():
    """提供示例车辆数据"""
    return {
        'speed': 80.0,
        'steering_angle': 15.5,
        'steering_rate': 25.0,
        'throttle': 60,
        'brake': 20,
        'roll': 0.5,
        'pitch': 0.3
    }

@pytest.fixture
def mock_config():
    """提供标准的测试配置"""
    return {
        'USE_WIFI': False,
        'USE_REAL_CAN': False,
        'USE_REAL_AC': False,
        'USE_RC': False,
    }